home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / nt / ntreskit.exe / SCHEMES.BAT < prev    next >
DOS Batch File  |  1993-08-29  |  3KB  |  80 lines

  1. @echo off
  2.  
  3. echo SCHEMES.BAT installs the cursor scheme Control Panel applet (schemes.cpl)
  4. echo in your %systemroot%\system32 directory and renames cursors.cpl
  5. echo to cursors.old.
  6. echo.
  7. echo Make sure your current directory is the directory where you
  8. echo installed the Resource Kit tools.
  9. echo.
  10. echo You must be logged on as a member of the Administrators group
  11. echo to install the schemes applet and Control Panel must not be open.
  12. echo.
  13. pause
  14. echo.
  15.  
  16. if not exist .\schemes.cpl goto ERROR_SCHEMES_MISSING
  17. if exist %systemroot%\system32\schemes.cpl goto ALREADY_INSTALLED
  18. if not exist %systemroot%\system32\cursors.cpl goto COPY_SCHEMES
  19.  
  20. copy %systemroot%\system32\cursors.cpl %systemroot%\system32\cursors.old
  21. if errorlevel 1 goto ERROR_COULD_NOT_COPY
  22.  
  23. del %systemroot%\system32\cursors.cpl
  24. if exist %systemroot%\system32\cursors.cpl goto ERROR_COULD_NOT_DEL
  25.  
  26. :COPY_SCHEMES
  27. copy .\schemes.cpl %systemroot%\system32
  28. if not exist %systemroot%\system32\schemes.cpl goto ERROR_COULD_NOT_INSTALL
  29.  
  30. echo.
  31. echo The cursor scheme Control Panel applet (schemes.cpl) was installed
  32. echo correctly.  To use it, open Control Panel and click on the dinosaur
  33. echo icon.
  34. goto END
  35.  
  36. :NO_CURSORS_APPLET
  37.  
  38. :ERROR_COULD_NOT_DEL
  39. echo.
  40. echo Could not delete %systemroot%\system32\cursors.cpl
  41. echo Make sure you are logged on as a member of the Administrators
  42. echo group and that you have Delete access to cursors.cpl.
  43. echo Close Control Panel if it is open.  Then try running SCHEMES.BAT
  44. echo again.
  45. goto END
  46.  
  47. :ERROR_COULD_NOT_INSTALL
  48. echo.
  49. echo Could not copy schemes.cpl into the %systemroot%\system32 directory.
  50. echo Make sure that you are logged on as a member of the Administrators
  51. echo group and that you have Change/Write access to the
  52. echo %systemroot%\system32 directory.
  53. echo goto END
  54.  
  55. :ERROR_COULD_NOT_COPY
  56. echo.
  57. echo Could not copy %systemroot%\system32\cursors.cpl to
  58. echo %systemroot%\system32\cursors.old.
  59. echo Make sure you are logged on as a member of the Administrators
  60. echo group and that you have Read access to cursors.cpl
  61. echo If cursors.old already exists, delete it.
  62. goto END
  63.  
  64. :ALREADY_INSTALLED
  65. echo.
  66. echo The schemes.cpl Control Panel applet is already installed on your
  67. echo computer.
  68. goto END
  69.  
  70. :ERROR_SCHEMES_MISSING
  71. echo.
  72. echo Could not find schemes.cpl in the current directory.
  73. echo Make sure the current directory is the directory that contains
  74. echo the Resource Kit files.  If schemes.cpl is not in the Resource
  75. echo Kit directory, copy it from the original Resource Kit floppy
  76. echo disks or CD-ROM.
  77. goto END
  78.  
  79. :END
  80.